<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

		<div id="primary">
			<div id="content" role="main">
				<?php while ( have_posts() ) : the_post(); ?>
					<?php get_template_part( 'content-single', get_post_format() ); ?>
				<?php endwhile; // end of the loop. ?>
				<div class="game_new">
					<h2 class="bigkool_new">
						<span>Game Hot Nhất </span>
						<img src="<?php echo  bloginfo('template_directory').'/images/hot_new.gif'?>">
					</h2>
            <?php
            global $post;
            $args = array('posts_per_page' => 7, 'slug' => 'game-new','orderby'=> 'rand','offset'=>0 );
            $myposts = get_posts( $args );
            foreach( $myposts as $post ) : setup_postdata($post); ?>
                <div class="rows clear">
                    <div class="left_game">
                     <a href="<?php the_permalink(); ?>"> <img  alt="Game : <?php the_title(); ?>" src="<?php echo get('image_thumb'); ?>"><br>  </a>
                    </div>
                    <div class="right_game">
                      <span class="title_game"><a href="<?php the_permalink(); ?>" title="Xem ngay"><?php the_title(); ?></a></span>
                      </br>
                      <span class="game_description"> <?php echo get('game_description'); ?> </span>
                      </br>
                      <span class="right_game_dowload"> <a href="<?php echo get('url_download'); ?>" target="_blank">Tải Game</a> </span>
                    </div>
               </div>
            <?php endforeach; ?>
				</div>
			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_footer(); ?>